mobileStoreConsumePurchase
Type
command
Summary
Consume a purchased item.
Syntax
mobileStoreConsumePurchase <productID>
Description
Use the mobileStoreConsumePurchase function to consume a purchased item.
The command mobileStoreConsumePurchase is used to consume a purchased item. This removes the item from the user's inventory.
This command is only used when interacting with Google Play Store in-app purchasing API. This is due to a Google API restriction that ensures a consumable product is consumed before another instance is purchased. Consume means that the purchase is removed from the user's inventory of purchased items, allowing the user buy that product again.
This command must only be called on consumable products. If you call mobileStoreConsumePurchase on a non-consumable product, then you no longer own that product.
Parameters
Name | Type | Description |
---|---|---|
productID | The identifier of the requested product. |
Examples
mobileStoreConsumePurchase "com.runrev.sampleapp.consumable"
Related
command: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase
function: mobileStoreProductProperty, mobileStorePurchasedProducts, mobileStorePurchaseError, mobileStoreCanMakePurchase
message: purchaseStateUpdate, productRequestError, productDetailsReceived
Compatibility and Support
Introduced
LiveCode 6.7
OS
ios
android
Platforms
mobile